package com.authManager.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

/**
 * <p>
 * 【用户角色关联表】实体类
 * </p>
 *
 * @author 小旋风
 * @since 2018-8-17
 */
@TableName("sys_user_role")
@ApiModel(description="用户角色关联表")
public class SysUserRole  implements Serializable{
	private static final long serialVersionUID = 1L;

	/**
	 * 主键id
	 */
	@ApiModelProperty(value = "主键id")
    @TableId(value="sys_user_role_id", type= IdType.AUTO)
    private Long sysUserRoleId;
	/**
	 * 用户id
	 */
	@ApiModelProperty(value = "用户id")
    @TableField(value="sys_user_id")
    private String sysUserId;
	/**
	 * 角色id
	 */
	@ApiModelProperty(value = "角色id")
    @TableField(value="sys_role_id")
    private Long sysRoleId;
	/**
	 * 创建人
	 */
	@ApiModelProperty(value = "创建人")
    @TableField(value="creater")
    private String creater;
	/**
	 * 创建时间
	 */
	@ApiModelProperty(value = "创建时间")
    @TableField(value="create_time")
    private Date createTime;
	
	public Long getSysUserRoleId() {
		return this.sysUserRoleId;
	}
	
	public SysUserRole setSysUserRoleId(Long sysUserRoleId) {
		this.sysUserRoleId = sysUserRoleId;
		return this;
	}

	public String getSysUserId() {
		return this.sysUserId;
	}
	
	public SysUserRole setSysUserId(String sysUserId) {
		this.sysUserId = sysUserId;
		return this;
	}

	public Long getSysRoleId() {
		return this.sysRoleId;
	}
	
	public SysUserRole setSysRoleId(Long sysRoleId) {
		this.sysRoleId = sysRoleId;
		return this;
	}

	public String getCreater() {
		return this.creater;
	}
	
	public SysUserRole setCreater(String creater) {
		this.creater = creater;
		return this;
	}

	public Date getCreateTime() {
		return this.createTime;
	}
	
	public SysUserRole setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}

}